<%@ page language="java" pageEncoding="utf-8"%>

<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean" %>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic" %>
<%@ taglib uri="http://struts.apache.org/tags-tiles" prefix="tiles" %>

<table><tr><td> ${sname}</td></tr>
       <tr><td class="red_text">${category.summary }</td></tr>

</table>

<style>
.cont{
    width:100%;
    margin:0 auto;
    }
.shop{
   width:18%;
   height:180px;
   float:left;
   text-align:center;
   margin:7px;
   background:#ffeffe;
   padding-top:20px;
   padding-bottom:20px;
   }
.icon{
      width:120px; 
      height:140px;
   }
</style>
<div class="cont" >
  <logic:iterate id="product" name="plist">
        <div class="shop">
           <html:link page="/toPlaceOrder.do" paramId="PID" paramName="product" paramProperty="id"><img src="../..${product.icon}" class="icon" ></html:link><br>
          <html:link page="/toPlaceOrder.do" paramId="PID" paramName="product" paramProperty="id"> ${product.name} </html:link><br>
                          ￥${product.price }元<br>
          <html:link page="/toPlaceOrder.do" paramId="PID" paramName="product" paramProperty="id">
                            购买</html:link>|收藏|详情
         </div>
  </logic:iterate>
</div>